﻿@model OMS.Models.OrderItemModelView   

@{
    ViewBag.Title = "EditItem";
}

@using (@Html.BeginRouteForm(Model))
{
    @Html.HiddenFor(m => m.Id);
    @Html.Hidden("orderId", new { orderId = ViewBag.OrderId })
    <table align=center>
        <tr>
            <td>Name</td>
            <td>@Html.DisplayFor(m => m.Item.Name)</td>
        </tr>
        <tr>
            <td>Price</td>
            <td>@Html.DisplayFor(m => m.Item.Price)</td>
        </tr>
        <tr>
            <td>Quantity</td>
            <td>@Html.EditorFor(m => m.Quantity)</td>
        </tr>
        <tr>
            <td>Dimension</td>
            <td>@Html.DropDownListFor(m => m.Dimension, new SelectList(new string[] {"item","box","package"},Model.Dimension)) </td>
        </tr>
    </table>
    <button action=submit>Done</button>
}